<template>
<div>
    <van-tabs>
        <van-tab v-for="item in cateList" :key="item.id" :title="item.title">
          <imageInfoCeil :val="item.id"></imageInfoCeil>
        </van-tab>
    </van-tabs>
</div>
</template>

<script>
import imageInfoCeil from "../components/imageInfoCeil";
import { getCateInfo } from "../apis/imageInfo";
export default {
data () {
    return {
        cateList:[{
            id:0,
            title:'全部'
        }]
    }
},
mounted () {
getCateInfo()
    .then(res => {
        //console.log(res);
        this.cateList = [...this.cateList, ...res.data.message]
        //console.log(this.cateList);
    })
},
components: {
    imageInfoCeil
},

}
</script>

<style lang="less" scoped>

</style>